package org.javacore.thread;

/**
 * Created by IntelliJ IDEA.
 * User: Fan
 * Date: 2018/7/15
 * Time: 13:39
 */
public class Job  implements Runnable{

    private PrintQueue printQueue;

    public Job(PrintQueue printQueue){
        this.printQueue = printQueue;
    }

    @Override
    public void run() {
        printQueue.printJob(new Object());
    }
}
